package com.xdq.serviceedu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xdq.servicebase.exceptionhandler.GuliException;
import com.xdq.serviceedu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xdq.serviceedu.entity.frontvo.CourseFrontVo;
import com.xdq.serviceedu.entity.frontvo.CourseWebVo;
import com.xdq.serviceedu.entity.vo.CourseInfoVo;
import com.xdq.serviceedu.entity.vo.CoursePublishVo;
import com.xdq.serviceedu.entity.vo.CourseQuery;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author atguigu
 * @since 2024-09-14
 */
public interface EduCourseService extends IService<EduCourse> {

    String  saveCourseInfo(CourseInfoVo courseInfoVo) throws GuliException;

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo) throws GuliException;

    CoursePublishVo publishCourseInfo(String id);

    Map<String, Object> pageCondition(Long current, Long limit, CourseQuery courseQuery);

    void removeCourse(String courseId) throws GuliException;

    Map<String, Object> getCourseFrontList(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
